<tagLib name="html" />
<include file="Public:header" />
<div id="main" class="main" >
<div class="content">
<div class="title">编辑合同 [ <a href="__URL__">返回列表</a> ]</div>
<table cellpadding=3 cellspacing=3>
<form method='post' id="form1">
<tr>
	<td class="tRight">合同编号：</td>
	<td class="tLeft">{$vo.sinceId}</td>
</tr>
<tr>
	<td class="tRight" >单位名称：</td>
	<td class="tLeft" >
		<SELECT  name="SignUnit_ID" class="small bLeft" id="SignUnit_ID" style="width:200px;">
			<option value="0">合同单位</option>
    		<volist name="units" id="data">
			<option value="{$data.id}" <eq name="data.id" value="$vo['SignUnit_ID']">selected</eq>>{$data.unit_name}</option>
    		</volist>
    </SELECT>
<a href="__URL__/Unit/add/">新增单位</a></td>
</tr>
<tr>
	<td class="tRight" >合同金额：</td>
	<td class="tLeft" ><input type="text" class="medium bLeft" id="Amount" name="Amount" value="{$vo.Amount}"></td>
</tr>
<tr>
	<td class="tRight" >经办人：</td>
	<td class="tLeft" >
	<SELECT  name="Agent_ID" class="small bLeft" id="Agent_ID" style="width:100px;">
	<option value="0">选择经办人</option>
    <volist name="agent" id="data">
	<option value="{$data.id}" <eq name="data.id" value="$vo['Agent_ID']">selected</eq>>{$data.agentName}</option>
    </volist>
    </SELECT>
	</td>
</tr>

<tr>
	<td class="tRight" >签订时间：</td>
	<td class="tLeft" >
	    <input type="text" class="medium bLeft" id="Contract_Date" name="Contract_Date" value="{$vo.Contract_Date|toDate='Y-m-d'}">如：2012-02-03或2012-1-3
	</td>
</tr>

<tr>
	<td class="tRight" >中间商：</td>
	<td class="tLeft" ></td>
</tr>

<tr>
	<td class="tRight">合同类型：</td>
	<td class="tLeft">
    <SELECT class="small bLeft"  name="ContractType_ID" id="ContractType_ID">
    <option value="0">选择合同类型</option>
    <volist name="contractType" id="data">
	<option value="{$data.id}" <eq name="data.id" value="$vo['ContractType_ID']">selected</eq>>{$data.typeName}</option>
    </volist>
	</SELECT></td>
</tr>

<tr>
	<td class="tRight tTop">备  注：</td>
	<td class="tLeft"><TEXTAREA class="large bLeft"  name="remark" rows="5" cols="57"></textarea></td>
</tr>
<tr>
	<td></td>
	<td class="center">
	<input type="hidden" name="id" value="{$vo.id}">
	<input type="hidden" name="ajax" value="1">
	<div class="impBtn fLeft"><input type="button" value="修改" onclick="sendForm('form1','__URL__/update/','tips')" class="save imgButton"></div>
	<div class="impBtn fRig"><input type="reset" class="reset imgButton" value="清空" ></div>
	</td>
</tr>
</form>
</table>
</div>
</div>